<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var arr = ["sxt","baizhan","it"];

        var names = [];
        names[0] = "iwen";
        names[1] = "frank";
        console.log(names);
        var info = [20,"iwen",true];
        console.log(info);

        // 多维数组：数组里面嵌套一层数组，称为二维数组
        var towArr = [100,200,["iwen","frank"]];
        console.log(towArr);

        //下标：赋值、读取
        var user = ["iwen","ime","frank"];
        console.log(user[2]);
        console.log(user[5]);//数组越界；undefined
        console.log(user.length);
    </script>
</body>
</html>